// ! 请求与处理函数之间的映射关系

const express = require('express');

const router = express.Router();

const router_handler = require('../router_handler/user');

// * 导入表单验证的处理函数模块
const expressJoi = require('@escook/express-joi');
const { reg_login_schema } = require('../schema/user');

// * 注册
router.post('/reguser', expressJoi(reg_login_schema), router_handler.reguser);

// * 登录
router.post('/login', expressJoi(reg_login_schema), router_handler.login);

// * 文章

// * 向外暴露 router
module.exports = router;
